﻿
using Microsoft.AspNetCore.Mvc.Filters;

namespace J.M.Inventory.Read.API.日志
{
    public class TextNlog : IExceptionFilter
    {
        private readonly ILogger<TextNlog> logger;

        public void OnException(ExceptionContext context)
        {
            logger.LogError(context.Exception, context.Exception.StackTrace);
        }
    }
}
